home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / msg.src < prev    next >
Text File  |  1991-02-21  |  883b  |  22 lines

  1. %%HP: T(3)A(D)F(.);
  2. @ MSG, a simple error message viewer.
  3. @ by Joseph K. Horn
  4. @ To use: Press MSG key, type a hex integer, and press ENTER.
  5. @ The message with that hex number will be displayed.
  6. @ This is a handy way to check a library's messages or message translations.
  7. @ (I wrote it purely to explore Bill Wickes' HYDE library!)
  8. @ To abort without input, just press ENTER (don't press ON).
  9.  
  10. \<< "Message number:"  @ stack prompt (shown on top line).
  11. { "#h" 2 \Ga } INPUT  @ alpha mode; insert mode; hex input.
  12.   IFERR OBJ\->  @ attempt to convert input string into hex integer.
  13.     IFERR DOERR  @ force the specified error to occur.
  14.     THEN         @ keep error from halting; just continue.
  15.     END
  16.     IFERR ERRM "\010" + 1 DISP 1 FREEZE @ show the error message.
  17.     THEN @ handle bad error messages.
  18.     END
  19.   THEN DROP @ clean up if bad input.
  20.   END
  21. \>>
  22.